# -*- coding: utf-8 -*-
# @Time    : 2021/11/06 21:36
# @Author  : XIEHAO
# @Email   : xiehao_1989@126.com
# File     : serializers.py
# @Software: PyCharm
from rest_framework.serializers import ModelSerializer  # 导入模型序列化器
from django.contrib.auth.models import User


# 创建用户序列化器
class UserSerializer(ModelSerializer):
    class Meta:
        model = User
        exclude = ['id', 'password']
